package com.yao.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("address_book")
@ApiModel(value="AddressBook对象", description="")
public class AddressBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id" , type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("phone")
    private String phone;

    @TableField("province_name")
    private String provinceName;

    @TableField("province_code")
    private String provinceCode;

    @TableField("city_name")
    private String cityName;

    @TableField("city_code")
    private String cityCode;

    @TableField("district_name")
    private String districtName;

    @TableField("district_code")
    private String districtCode;

    @TableField("address")
    private String address;

    @TableField("full_address")
    private String fullAddress;

    @TableField("is_default")
    private Boolean isDefault;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("open_id")
    private String openId;


    public AddressBook() {
    }


    public AddressBook(Long id, String name, String phone, String provinceName, String provinceCode, String cityName, String cityCode, String districtName, String districtCode, String address, String fullAddress, Boolean isDefault, LocalDateTime createdAt, LocalDateTime updatedAt, String openId) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.provinceName = provinceName;
        this.provinceCode = provinceCode;
        this.cityName = cityName;
        this.cityCode = cityCode;
        this.districtName = districtName;
        this.districtCode = districtCode;
        this.address = address;
        this.fullAddress = fullAddress;
        this.isDefault = isDefault;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.openId = openId;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return provinceName
     */
    public String getProvinceName() {
        return provinceName;
    }

    /**
     * 设置
     * @param provinceName
     */
    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    /**
     * 获取
     * @return provinceCode
     */
    public String getProvinceCode() {
        return provinceCode;
    }

    /**
     * 设置
     * @param provinceCode
     */
    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    /**
     * 获取
     * @return cityName
     */
    public String getCityName() {
        return cityName;
    }

    /**
     * 设置
     * @param cityName
     */
    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    /**
     * 获取
     * @return cityCode
     */
    public String getCityCode() {
        return cityCode;
    }

    /**
     * 设置
     * @param cityCode
     */
    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    /**
     * 获取
     * @return districtName
     */
    public String getDistrictName() {
        return districtName;
    }

    /**
     * 设置
     * @param districtName
     */
    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    /**
     * 获取
     * @return districtCode
     */
    public String getDistrictCode() {
        return districtCode;
    }

    /**
     * 设置
     * @param districtCode
     */
    public void setDistrictCode(String districtCode) {
        this.districtCode = districtCode;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return fullAddress
     */
    public String getFullAddress() {
        return fullAddress;
    }

    /**
     * 设置
     * @param fullAddress
     */
    public void setFullAddress(String fullAddress) {
        this.fullAddress = fullAddress;
    }

    /**
     * 获取
     * @return isDefault
     */
    public Boolean getIsDefault() {
        return isDefault;
    }

    /**
     * 设置
     * @param isDefault
     */
    public void setIsDefault(Boolean isDefault) {
        this.isDefault = isDefault;
    }

    /**
     * 获取
     * @return createdAt
     */
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    /**
     * 设置
     * @param createdAt
     */
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 获取
     * @return updatedAt
     */
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 设置
     * @param updatedAt
     */
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取
     * @return openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置
     * @param openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String toString() {
        return "AddressBook{serialVersionUID = " + serialVersionUID + ", id = " + id + ", name = " + name + ", phone = " + phone + ", provinceName = " + provinceName + ", provinceCode = " + provinceCode + ", cityName = " + cityName + ", cityCode = " + cityCode + ", districtName = " + districtName + ", districtCode = " + districtCode + ", address = " + address + ", fullAddress = " + fullAddress + ", isDefault = " + isDefault + ", createdAt = " + createdAt + ", updatedAt = " + updatedAt + ", openId = " + openId + "}";
    }
}
